/**
 * @description GoodsPhoto 商品图片信息表
 * @author LI
 */

const seq = require('../sequelize')
const { STRING, INTEGER } =require('../types')

// GoodsPhotos GoodsPhoto 写入到数据库时为 GoodsPhotos
const GoodsPhoto = seq.define('goodsPhoto', {
  photoName: {
    type: STRING,
    comment: '图片名称'
  },
  photoUrl: {
    type: STRING,
    allowNull: false,
    comment: '图片地址路径 url'
  },
  goodsInfoId: {
    type: INTEGER,
    allowNull: false,
    comment: '对应的商品信息表里面的 id'
  },
  remark: {
    type: STRING,
    comment: '要求，备注'
  },
  reserve: {
    type: STRING,
    comment: '保留字段'
  }
},
{
  comment: '商品图片信息表',
})

module.exports = GoodsPhoto
